

<?
// pr($params);

?>


<style>
.mailform_container {text-align:center}
.mailform_header {
	font-weight:bold; color:#ff9933;
	}
.mailform_container FORM {margin-top:5px;}

.mailform_body {width:350px; text-align:left; border:1px solid #CCCCCC; color:#003300; font:12px tahoma, verdana; background:#FaFaFa;}
.mailform_label {padding:8px 20px 0px 20px;}
.mailform_field {padding:1px 20px 0px 20px; }

.mailform_field INPUT,
.mailform_field TEXTAREA {
	width:100%; height:20px; 
	background:#FFFFFF; 
	border:1px solid #CCCCCC; 
	color:#191970;
	font:normal 14px Arial;
}
.mailform_field TEXTAREA {
	overflow:auto; 
	height:70px; 
	margin:0 0px;
	} 



.mailform_submits {padding:5px 20px 15px 20px; text-align:center;}
.mailform_submits INPUT {cursor:pointer; width:200px; height:25px; font:12px tahoma;}

.mailform_error { 
	border:1px dotted #f00;
	background: #fff ;
	color:red;
	margin:5px 0; padding:5px;
	text-align:center;
 }
</style>


<?=Mailform::start()?>

<?if($error){?><div class=mailform_error><?=$error?><script>alert("<?=$params['error_alert']?>")</script></div><?}?>

<center class=mailform_container >
	<?if($header){?><div class=mailform_header ><?=$header?>:</div><?}?>
   

	<div class=mailform_body >

		<?= // выводим все поля формы
			Mailform::fields(
				"
				<div class=mailform_label>%label%</div>
				<div class=mailform_field >%field%</div>
				"
			);
		?>

		<div class=mailform_submits >
			<?= //выводим кнопки формы
				Mailform::submits('%submit%'); 
			?>
		</div>
			
	</div>
</center>

<?=Mailform::end();?>